package com.cqs.learning.nacos.controller;

import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lixw
 * @date created in 22:25 2020/5/5
 */
@Log4j2
@RestController
public class ProducerController {


    @RequestMapping("/hello")
    public String hello() {

        return "hello";
    }

    @RequestMapping(value = "/echo/{str}")
    public String echo(@PathVariable String str) {
        return "Hello Nacos Discovery " + str;
    }
}
